package Constant;

public class Constance {
//	/** -----------------数据url--------- */ 	
	public static final class URL {
	public static final String IMG_BASE = "http://192.168.0.102/public/storage/";
//	public static final String BASE_API= "http://192.168.0.108/public/index.php/api";
	public static final String BASE_API =  "http://192.168.0.104/community/public/index.php/api";
//	public static final String BASE_API =  "http://115.28.200.111/community/public/index.php/api";
	public static final String USER = BASE_API+"/user";
	public static final String USERSIGNIN = USER+"/sign";	
	public static final String USER_LOGIN = USER+"/login";
	public static final String REWARDS =BASE_API+"/article/reward";
	public static final String ATTENTION_USER = USER+"/attention";
	public static final String UNATTENTION_USER = USER+"/unattention";
	public static final String POST_ARTICLE = BASE_API+"/article";
	public static final String USER_PRAISE = BASE_API+"/article/praise";
	public static final String USER_COLLECT = BASE_API+"/article/collect";
	public static final String USER_UN_COLLECT = BASE_API+"/article/uncollect";
	public static final String USER_UN_PRAISE = BASE_API+"/article/unpraise";
	public static final String USERCIRCLE = BASE_API+"/categories";
	public static final String REPLY_POST = BASE_API+"/article/comment";
    }
	/**
	 * 用户登录类型
	 * @author USER
	 *
	 */
	public static final class USERTYPE{
		public static final String XINLIANG="1";
		public static final String WEIXIN="2";
		public static final String QQ="3";
	}
	
	public static final class STATUS_TYPE{
		public static final String SUCCESS="success";
		public static final String ERROR="error";
	}
	/**
	 * intent
	 * @author USER
	 *
	 */
	public static final class INTENT {
		public static final int LOGIN = 143;//第三方登陆
		public static final int LOGIN_NORMAL = 143;//普通登陆
		public static final int MIME_UPDATE_HEADER = 952;//进入我的详情页面
		public static final int UPDATE_HEADER = 902;//更换头像
		public static final int  SET_BACK= 992;//设置返回
		public static final int LOGIN_INFO = 153;//登陆信息
		public static final int LOGIN_STATE = 103;//登陆状态
		public static final int SET_USERINFO = 1003;//设置用户信息
		public static final int REGIST = 1243;
		public static final int SEARCH = 193;
		public static final int lOGIN_XL = 103;//新浪登陆
		public static final int lOGIN_QQ = 174;//qq登陆
		public static final int lOGIN_WX = 854;//微信登陆
		public static final int LOGIN_DL = 185;
		public static final int LOGIN_SET = 145;
		public static final int ADD_CITY = 899;
		public static final int PAYORDER = 789;
		public static final int BUY = 849;
		public static final int DETAIL = 69;
		public static final String LOGIN_USER = "loginuser";
		public static final String XLUSER = "xl_user";//新浪用户
		public static final String QQUSER = "xl_usdder";//QQ用户
		public static final int UPDATE_PHONE = 2561;//绑定手机号
		public static final int COMFIRM_PHONE = 21;//确认更名号码
		public static final int UPDATE_NICKNAME = 950;//更改昵称
		public static final int COMFIRM_NICKNAME = 364;//确认更改昵称
		public static final String CATEGORY_ID = "category_id";//社区的id
		public static final String USER_ID = "123132";//用户id
		public static final String USER_NAME = "1234541132";//用户昵称
		public static final String REPLIES = "SDAFSDDSF";//回帖
		public static final String ARTICLE_ID = "0564198";//用户文章id
		public static final String ARTICLE_PARENT_ID = "768435";//用户文章父id
		public static final int REPLIES_RESULT = 56054;//用户文章父id
	}
	public final static class DB {
		public final static String HISTORY = "history";
		public final static String FAVORITE = "favorite";
	}
	/**
	 * 返回码
	 * @author USER
	 *
	 */
	public final static class STATUCODE {
		public final static int SIGINED = 409;
	}
	/**
	 * 图片相关
	 * @author USER
	 *
	 */
	public final static class PICTURE{
		public static final int RESULT_LOAD_IMAGE = 1;
		public static final int TAKE_PICTURE = 0;
		public static final int CUT_PHOTO_REQUEST_CODE = 2;
		public static final int SELECTIMG_SEARCH = 3;
	}
	/**
	 * 百度语音
	 */
	public final static class BAIDUVOCE{
		public static final String EXTRA_KEY = "key";
	    public static final String EXTRA_SECRET = "secret";
	    public static final String EXTRA_SAMPLE = "sample";
	    public static final String EXTRA_SOUND_START = "sound_start";
	    public static final String EXTRA_SOUND_END = "sound_end";
	    public static final String EXTRA_SOUND_SUCCESS = "sound_success";
	    public static final String EXTRA_SOUND_ERROR = "sound_error";
	    public static final String EXTRA_SOUND_CANCEL = "sound_cancel";
	    public static final String EXTRA_INFILE = "infile";
	    public static final String EXTRA_OUTFILE = "outfile";

	    public static final String EXTRA_LANGUAGE = "language";
	    public static final String EXTRA_NLU = "nlu";
	    public static final String EXTRA_VAD = "vad";
	    public static final String EXTRA_PROP = "prop";

	    public static final String EXTRA_OFFLINE_ASR_BASE_FILE_PATH = "asr-base-file-path";
	    public static final String EXTRA_LICENSE_FILE_PATH = "license-file-path";
	    public static final String EXTRA_OFFLINE_LM_RES_FILE_PATH = "lm-res-file-path";
	    public static final String EXTRA_OFFLINE_SLOT_DATA = "slot-data";
	    public static final String EXTRA_OFFLINE_SLOT_NAME = "name";
	    public static final String EXTRA_OFFLINE_SLOT_SONG = "song";
	    public static final String EXTRA_OFFLINE_SLOT_ARTIST = "artist";
	    public static final String EXTRA_OFFLINE_SLOT_APP = "app";
	    public static final String EXTRA_OFFLINE_SLOT_USERCOMMAND = "usercommand";

	    public static final int SAMPLE_8K = 8000;
	    public static final int SAMPLE_16K = 16000;

	    public static final String VAD_SEARCH = "search";
	    public static final String VAD_INPUT = "input";
	}
	/**
	 * 聊天工具
	 * @author USER
	 *
	 */
	public final static class CHATS{
		public static final String SP_NAME="sp_name";
		public static final String M_HEAD_PIC="m_head_pic";
		public static final String CHATTYPE="chatType";
		public static final String CURRENT_USR="current_usr";
		public static final String BEAN_KEY="bean_key";
		public static final String MESSAGE_ATTR_IS_VOICE_CALL = "is_voice_call";
		public static final String MESSAGE_ATTR_IS_VIDEO_CALL = "is_video_call";
		public static final String CURRENT_USR_PIC="current_usr_pic";
		public static final String ACCOUNT_REMOVED = "account_removed";
		public static final String MESSAGE_ATTR_IS_SERVICE_BUY = "is_service_buy";
		public static final String USERID="userId";
		public static final String GROUP_USERNAME = "item_groups";
		public static final String NEW_FRIENDS_USERNAME = "item_new_friends";
		public static final String CONFLICT="conflict";
		public static final String FORWARD_MSG_ID="forward_msg_id";
	}
}
